package com.matt.foundation.vo;

import lombok.Data;

import java.math.BigDecimal;

/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2019/01/16
 * *******************************
 */
@Data
public class PayVo {

    private BigDecimal actualAmount = BigDecimal.ZERO;

    private double discount = 0d;

    public static PayVo of(BigDecimal actualAmount,double discount){
        PayVo vo = new PayVo();
        vo.setActualAmount(actualAmount);
        vo.setDiscount(discount);
        return vo;
    }
}
